{% extends "PopshouseAdminBundle::layout.html.twig" %}
{% block js %}
admin('translation','inline','{{ path('trans_delete_dummy') }}');
{% endblock %}

{% block title %}
Vertalingen
{% endblock %}
{% block content %}
<div class="left side">
    {% include "PopshouseAdminBundle:Translation:menu.html.twig"  %}
</div>
<div class="left content" style="width:670px">

	<h2>Vertalingen</h2>
	
	{% if app.session.hasFlash('notice') %}
	    <div class="message message-green">
            {{ app.session.flash('notice') }}
            <span class="close"><img src="{{ asset('images/layout/admin/icon/close_green.png') }}" alt="sluit" /></span>
        </div>
	{% endif %}
	
	<p>Klik op een categorie om te vertalen</p>
	
	<ul class="translations">
		{% for domain in domains %}
		<li id="translation_{{ domain }}">
		<a href="{{ path('trans_domain', { 'domain' : domain }) }}">{{ domain }}</a>
		<div id="tools" style="display:none;">
	       <a class="noborder" id="delete" translationid="{{ domain }}" href="{{ path('trans_delete',{'domain':domain}) }}"><img src="{{ asset('images/layout/icons/delete.png') }}" class="clickable" /></a>
	    </div>
	         <div id="dialog_{{ domain }}" style="display:none;" title="Bevestig verwijderen?">
	
	            Weet je zeker dat je categorie "{{ domain }}" wil verwijderen?
	
	        </div>
		</li>
		{% endfor %}
	</ul>
	<p><a href="{{ path('trans_create') }}" class="action"><span>+ Nieuwe categorie</span></a></p>
</div>
{% endblock %}